package com.personal.enums;

/**
 * @author coderFu
 * @create 2021/10/1
 *通用返回枚举
 */
public enum HomeEnum implements Code {

    /** 首页 */
    QUERY_ALL_RESOURCES_IS_NULL(2001, "没有找到哦"),
    QUERY_CAT_IS_NULL(2002, "你还没有创建分类哦")
    ;

    private int code;
    private String msg;
    HomeEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }
}
